using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace SHKurzy.Domain {
    
    
    public class TypKonceKurzuMap : ClassMap<TypKonceKurzu> {
        
        public TypKonceKurzuMap() {
			Table("TypKonceKurzu");
			LazyLoad();
			Id(x => x.ID).GeneratedBy.Identity().Column("ID");
			Map(x => x.Popis).Column("Popis").Not.Nullable().Length(50);
			Map(x => x.Poradi).Column("Poradi").Length(8);
			HasMany(x => x.KurzySet).KeyColumn("TypKonceID");
        }
    }
}
